package it.ap.sa.acqua.auth.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import it.ap.sa.acqua.dao.impl.TUserProfileDao;
import it.ap.sa.acqua.dao.model.TUserProfile;

@Service("userProfileService")
@Transactional
public class UserProfileService implements IUserProfileService {

	@Autowired
	TUserProfileDao tUserProfileDao;

	public TUserProfile findById(int id) {
		return tUserProfileDao.findById(id);
	}

	public TUserProfile findByType(String type) {
		return tUserProfileDao.findByType(type);
	}

	public List<TUserProfile> findAll() {
		return tUserProfileDao.findAll();
	}
}